package com.tj.bo.user.server.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.common.datasource.DataSource;
import com.tj.bo.user.server.dao.UserBehaviorDeviceDao;
import com.tj.bo.user.server.entity.UserBehaviorDeviceEntity;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.Map;

/**
* User: anonymous
* Date: 2020-06-10
* Time: 15:40:06.943
*/
@DataSource("dataSourceUser")
@Repository
public class UserBehaviorDeviceDaoImpl extends AbstractBaseMapper<UserBehaviorDeviceEntity> implements UserBehaviorDeviceDao {

    @Override
    public UserBehaviorDeviceEntity selectUserBehaviorDeviceByUserCode(String userCode) {
        Map<String, Object> params = new HashMap<>();
        params.put("userCode", userCode);
        return getSqlSession().selectOne(this.getStatement("selectUserBehaviorDeviceByUserCode"), params);
    }
}